<template>
  <el-dialog :visible.sync="open" @close="close" :title="title" width="800px">
    <el-form ref="elForm" :model="formData" size="small" label-width="100px" label-position="left">
      <el-row :gutter="15">
        <el-col :span="24">
          <el-form-item label="标绘主题" prop="planTitle">
            <el-input v-model="formData.plottingTitle" placeholder="请输入标绘主题" :style="{ width: '100%' }"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer">
      <el-button @click="close">取消</el-button>
      <el-button type="primary" @click="handleConfirm">确定</el-button>
    </div>
  </el-dialog>
</template>
<script>
import dialogMixin from '../../../../mixins/dialogMixin';

export default {
  name: 'DrillEditDialog',
  mixins: [dialogMixin],
  components: {},
  props: [],
  data() {
    return {
      formData: {
        plottingId: 0,
        plottingTitle: '',
      },
      makeDeptName: '',
      title: '编辑协同标绘',
      isedit: false
    }
  },
  computed: {},
  watch: {},
  created() { },
  mounted() { },
  methods: {
    add() {
      this.formData = {
        plottingId: 0,
        plottingTitle: '',
      };
      this.isedit = false;
      this.open = true;

    },
    edit(data) {
      this.formData = Object.assign({}, data);
      this.isedit = true;
      this.open = true;
    },
    handleConfirm() {
      this.$emit('handleOk', this.formData);
      this.close();
    },
  }
}

</script>
<style>

</style>
